package com.itheima.inner6;

public class Test {
    public static void main(String[] args) {
        new Fu(){
            int i=10;
            @Override
            public void sing(){
                System.out.println("子类的sing方法");

            }
        }.sing();
    }

}

class Fu{

    public void sing(){
        System.out.println("父类的sing方法");
    }
}